import apis from "../services/documentApi";

const initData = {};

export default {
  namespace: "document",
  state: {
    ...initData
  },
  effects: {
    *downLoad({ payload }, { call }) {
      return yield call(apis.downLoad, payload);
    }
  },

  reducers: {
    updateState: (state, { payload }) => ({
      ...state,
      ...payload
    })
  }
};
